package com.study.orderserviceprovider.environment;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @Description：
 * @author: 李军容
 * @version: 2020/11/30 20:17
 */
@Configuration
public class ActiveProfileConfig {

    @Profile("prd")
    @Bean
    public ActiveProfileTest activeProfileTest(){
        return new ActiveProfileTest("prd");
    }

    @Profile("act")
    @Bean
    public ActiveProfileTest activeProfileTest2(){
        return new ActiveProfileTest("act");
    }

}
